package com.dm.dto.sort;

import com.dm.module.DmArea;
import com.dm.module.DmCinema;
import com.dm.module.DmItem;
import com.dm.module.DmItemType;
import org.springframework.format.annotation.DateTimeFormat;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DmItemInfo extends DmItem {

    private DmArea dmArea;

    private DmCinema dmCinema;

    @DateTimeFormat(pattern = "yyyy.MM.dd")
    private Date startTimes;
    @DateTimeFormat(pattern = "MM.dd")
    private Date endTimes;


    public String getStartTimes() {
        SimpleDateFormat sdf =new SimpleDateFormat("yyyy.MM.dd");
        String format = sdf.format(startTimes);
        return format;
    }


    public Date getOrStartTimes() {

        return startTimes;
    }

    public void setStartTimes(Date startIimes) {
        this.startTimes = startIimes;
    }

    public String getEndTimes() {
        SimpleDateFormat sdf =new SimpleDateFormat("MM.dd");
        String format = sdf.format(startTimes);
        return format;
    }



    public Date getOrEndTimes() {
        return endTimes;
    }
    public void setEndTimes(Date endIimes) {
        this.endTimes = endIimes;
    }

    public DmArea getDmArea() {
        return dmArea;
    }

    public void setDmArea(DmArea dmArea) {
        this.dmArea = dmArea;
    }

    public DmCinema getDmCinema() {
        return dmCinema;
    }

    public void setDmCinema(DmCinema dmCinema) {
        this.dmCinema = dmCinema;
    }



}
